/**
 * @date 2016年3月6日 下午8:42:10
 * @version V1.0
 */
package main;

import java.io.IOException;


public class Main {

    public static void main(String[] args) throws IOException, InterruptedException {
        int ntopics = 100;
        int niters = 2000;
        int saveStep = 3000;
        int cpu = 1;


        // news tag num:7 new-tweet tag num 9
//        String[] datasetlist = {"20newsgroup"};
//
//        for(String dataset:datasetlist) {
//            String path = "data3/"+dataset+"/"+dataset+".data";
//            for (int i = 0; i < 1; i++) {
//                edu.cn.nlsde.tmfst.lda.LDA.build_LDA_Model(path, 100, 2000, 0.1, 0.01, 2);
////                edu.cn.nlsde.tmfst.mlda.MixtureOfUnigrams.UnigramText(i*20, 2000, 5, path);
////                edu.cn.nlsde.tmfst.mlda.GSLDA_without_background.build_GSLDA_without_background_Model(path, 100, 2000, 0.1, 0.01, 0.03, 2);
//            }
//        }
//        String sPath = "data/news/wntm/news.adjacent";
//        PAMForShortTexts.PAMForShortText(500, 50, 2000, 1, 3000, 0.1, 0.1, 0.01, 1, root+"Train.data.wf");

//
//        edu.cn.nlsde.tmfst.lda.TestLDA.build_TestLDA_Model(root + "news.data", 100, 3000, 0.1, 0.01, 1);
//        edu.cn.nlsde.tmfst.lda.WLDA.build_WLDA_Model(root + "new-tweet.data", 100, 2000, 0.1, 0.01, 1);
//        edu.cn.nlsde.tmfst.mlda.SLDA.build_SLDA_Model(root + "news_1000.train.data",root+"news_1000.train.tag",100,2000, 0.1, 0.01, 1);
//        edu.cn.nlsde.tmfst.lda.LDA_one_word.build_LDA_Model(root + "test.data", 50, 2000, 0.1, 0.01, 1);
//          edu.cn.nlsde.tmfst.mlda.DsparseTM.DsparseTMs(ntopics,  cpu,  sPath,  niters,  saveStep);
//        LDA_inference.infer_LDA(root+"test/news_1000.test.data", root+"LDA_0.1_0.01_100/0/",500,0.1,0.01,"LDA_100");

//        SLDA.predict(root + "SLDA_0.1_0.01_100/0/", root + "news_1000.train.data", root + "news_1000.train.tag", 100, 0.1, 0.01);

//
//        String root = "data/news/wntm/news.data";
//        String model_dir = root+"LDA_0.1_0.01_20/0/";
//
//        edu.cn.nlsde.tmfst.lda.LDA_inference.infer_LDA(root+"data.data.processed.test",model_dir,1000,0.1,0.01);

//        edu.cn.nlsde.tmfst.mlda.GSLDA_without_background.build_GSLDA_without_background_Model(root + "stackoverflow.adjacent", 100, 2000, 0.1, 0.01, 0.03, 2);
//        edu.cn.nlsde.tmfst.mlda.GSLDA_without_specific.build_GSLDA_without_specific_Model(root + "new-tweet.adjacent", 50, 2000, 0.1, 0.01, 1);
//        edu.cn.nlsde.tmfst.mlda.GSLDA.build_GSLDA_Model(root + "dblp-6.adjacent", 100, 2000, 0.1, 0.01, 1);

//        edu.cn.nlsde.tmfst.mlda.GSPAMForShortTexts.GSPAMForShortText(1000,100,2000,1000,0.1,0.1,0.01,2,root+"news.data");
//        edu.cn.nlsde.tmfst.mlda.GSPAMForShortTexts2.GSPAMForShortText2(1000,100,2000,1000,0.1,0.1,0.01,2,root+"news.data");

//        edu.cn.nlsde.tmfst.lda.LDA.build_LDA_Model("data4/new-tweet/wntm_noWeight2/new-tweet.adjacent", 20, 2000, 0.1, 0.01, 2);
//        edu.cn.nlsde.tmfst.lda.LDA_WN.build_LDA_WN_Model("data4/news/wntm_coherence/news.adjacent", 100, 2000, 0.1, 0.01, 2);
        String root = "C:\\Users\\ffftzh\\Desktop\\ll\\";
        edu.cn.nlsde.tmfst.lda.LDA.build_LDA_Model(root + "doc.txt", 4, 2000, 0.1, 0.01, 1);
    }

}
